{template 'common/header'}
    <div id="main-column" class="container-12 clearfix member-center">
        <div class="column2 grid-3 alpha omega">
            {template 'rule/nav'}
        </div>
        <div class="column1 grid-10 alpha omega">
            <div class="list">
				{loop $list $row}
            	<div class="rule_item clearfix">
                	<div class="rule_content clearfix">
                    	<div class="data fl">{$row[name]} <span style="font-size:12px;">（{$_W['setting']['modules'][$row[module]]['title']}）</span></div>
                        <div class="fr">
						设置为：[
						{if $wechat['defaultrid'] == $row['id']}<a href="{php echo create_url('rule/system/cancel', array('type' => 'default'))}" onclick="ajaxopen(this.href, message);return false;" style="color:#FF3300">取消默认回复</a>{else}<a href="{php echo create_url('rule/system/set', array('id' => $row['id'], 'type' => 'default'))}" onclick="ajaxopen(this.href, message);return false;">默认回复</a>{/if}
						]&nbsp;[
						{if $wechat['welcomerid'] == $row['id']}<a href="{php echo create_url('rule/system/cancel', array('type' => 'welcome'))}" onclick="ajaxopen(this.href, message);return false;" style="color:#FF3300">取消欢迎信息</a>{else}<a href="{php echo create_url('rule/system/set', array('id' => $row['id'], 'type' => 'welcome'))}" onclick="ajaxopen(this.href, message);return false;">欢迎信息</a>{/if}]
						&nbsp;&nbsp;
                        <a href="{php echo create_url('rule/post', array('id' => $row['id']))}">编辑/查看</a>
                        &nbsp;
						<a onclick="return confirm('删除规则将同时删除关键字与回复，确认吗？');return false;" href="{php echo create_url('rule/delete', array('id' => $row['id'], 'type' => 'rule'))}">删除</a>
                        </div>
                    </div>
                    <div class="rule_desc clearfix" style="height:auto;line-height:25px;">
                        {loop $row['keywords'] $kw}
                       <span class="rule_kw"> {$kw['content']}</span>
                        {/loop}
                    </div>
                </div>
				{/loop}
            </div>
			<div>
				{$pager}
			</div>
        </div>
    </div>
{template 'common/footer'}
